﻿<include file="Public:header" />
<div style="display:none">{$_GET['activity_id']|voteBrowse}</div>
<body class="layout">
<div id="index" >
  <div class="head"> <img src="__ROOT__/App/Vote/Static/images/top.png"/> </div>
  <!-- 我的参赛信息 -->
  <div class="information">
    <div class="person">
      <div class="person-head"> <a href="__URL__/index?activity_id=<?php echo $_GET['activity_id']?>"><img src="__ROOT__/App/Vote/Static/images/close.png" class="close"></a> <img src="{$Think.config.IMG_PATH}<if condition='$data.state eq 2'>{$data.img}<else/>/App/Vote/Static/img/404.jpg</if>" class="img" >
        <div class="shadow-tip"> <span class="person-no">NO:{$data.id}</span> <span class="person-name">{$data.name}</span> </div>
      </div>
      <div class="person-foot">
        <p>票数：<span class="vote-num">{$data.vote_num}</span></p>
        <p>参赛宣言：{$data.info}</p>
      </div>
    </div>
    <div class="three-btn">
      <button id="tovote" onClick="addvote();">我要投票</button>
      <button id="toupdate">重新上传</button>
      <button id="toback">点击返回</button>
    </div>
  </div>
</div>
<include file="Public:footer" /> 

<script charset="utf-8" type="text/javascript">
weixinShare({$signPackage},{$sharePackage_detail});
var activityid = "{$_GET['activity_id']}";
var userid = "{$_GET['id']}";
var showmsg = "{$showmsg}";
//alert(showmsg);
$(function(){
	if(showmsg == 1){
		Util.showmsg("恭喜您报名成功！您已获赠1500积分，可至账户查询。");
	}
	//获取图片高度
	var h=$(".box img").css("height");
	$(".dynamic").css("line-height",parseInt(h)*0.22+"px");
	//提示转发信息
	$(".rule").click(function(){
		$(".rule-fixed").show();
	});
/*
	//投票
	$("#tovote").click(function(){
		if($(this).hasClass("hasvoted")){
			Util.showmsg("你已经投过票了")
		}
		else{
			var num=parseInt($(".vote-num").text());
			num+=1;
			$("#tovote").addClass("hasvoted");
			$(".vote-num").text(num)
		}
	});*/
	$("#toupdate").click(function(){
		Util.showmsg("重新上传照片后，原照片的所有信息及票数将被清空，确定重新上传吗？","","","confirm","__URL__/join?activity_id="+activityid+"&userid="+userid)
	});
	$("#toback").click(function(){
		location.href="__URL__/index?activity_id="+activityid;
	});
});
</script>
</html>